﻿package rd.hardcore.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Thibault Perret
	 */
	public class SaveManagerEvent extends Event 
	{
		
		static public const SAVE_PROCESS_SUCCEED	:	String = "saveProcessSucceed";
		static public const SAVE_PROCESS_FAILED		:	String = "saveProcessFailed";
		static public const NEED_OVERRIDE			:	String = "needOverride";
		static public const ACCEPT_OVERRIDE			:	String = "acceptOverride";
		static public const CANCEL_OVERRIDE			:	String = "cancelOverride";
		static public const REFRESH_PADSMANAGER		:	String = "refreshPadsManager";
		
		
		public var data:Array;
		
		public function SaveManagerEvent(type:String, _data:Array = null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			data = _data;
		} 
		
		public override function clone():Event 
		{ 
			return new SaveManagerEvent(type, data, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SaveManagerEvent", "type", "data", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}